﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.AutoUpdate.Code.EventTrigger
{
    public class EventTriggerOutter<TArgument>
    {
        private List<Func<TArgument, bool>> triggers;

        public EventTriggerOutter(List<Func<TArgument, bool>> triggers)
        {
            this.triggers = triggers;
        }

        public void Add(Func<TArgument, bool> trigger)
        {
            this.triggers.Add(trigger);
        }

        public bool Remove(Func<TArgument, bool> trigger)
        {
            return this.triggers.Remove(trigger);
        }
    }
}
